import {
  createRouter,
  createWebHashHistory,
  createWebHistory,
} from "vue-router";
import { staticRouter, errorRouter, menuRouter } from "./modules/staticRouter";

const routerMode = {
  hash: () => createWebHashHistory(),
  history: () => createWebHistory(),
};

const router = createRouter({
  history: routerMode.hash(),
  routes: [...staticRouter, ...errorRouter, ...menuRouter],
});

export default router;
